/**
 * @intro: 主程序入口.
 */

// 导入样式
import 'normalize.css'
import 'font-awesome/scss/font-awesome.scss'
import 'src/assets/scss/main.scss'
// 导入Vue框架
import Vue from 'vue'
// 导入element组件
import ElementUI from './element-ui'
import {
  Button,
  Select,
  Switch,
  Option,
  Dialog,
  Form,
  FormItem,
  Col,
  DatePicker,
  TimePicker,
  Checkbox,
  Radio,
  CheckboxGroup,
  RadioGroup,
  Tabs,
  TabPane,
  Upload,
  InputNumber
} from 'element-ui'
// 导入组件
import components from './components'
// 导入路由
import router from './router'
// 导入状态管理器
import store from 'src/store'
// 导入请求框架
// import api from './api'
// 导入自定义插件
import plugin from './plugin'
// 导入主视图文件
import App from './App'

// 注册
Vue.use(ElementUI)
Vue.use(components)
Vue.use(plugin)
Vue.use(Button)
Vue.use(Select)
Vue.use(Switch)
Vue.use(Option)
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Col)
Vue.use(DatePicker)
Vue.use(TimePicker)
Vue.use(Checkbox)
Vue.use(Radio)
Vue.use(CheckboxGroup)
Vue.use(RadioGroup)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Upload)
Vue.use(InputNumber)
// 发布后是否显示提示
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('mainbody')
